package com.eastfair.pay.vo;

import com.eastfair.annotation.annotation.dictionary.Dict;
import com.eastfair.annotation.annotation.dictionary.DictionaryField;
import com.eastfair.annotation.annotation.echo.Echo;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.eastfair.annotation.model.EchoVO;
import com.eastfair.pay.demand.CollectRecordGroup;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 实体类
 * 认款记录
 * </p>
 *
 * @author clm
 * @since 2022-06-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CollectRecordVO", description = "认款记录")
public class CollectRecordVO implements Serializable  {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 款项类型(数据字典)
     */
    @Dict(dicCode = "COLLECT_TYPE")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {CollectRecordGroup.queryCollectByRecordId.class, CollectRecordGroup.queryCollectByPlanId.class})
    private String collectType;

    /**
     * 认款金额
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {CollectRecordGroup.queryCollectByRecordId.class, CollectRecordGroup.queryCollectByPlanId.class})
    private BigDecimal collectAmount;

    /**
     * 付款方式(数据字典)
     */
    @Dict(dicCode = "PAY_TYPE")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {CollectRecordGroup.queryCollectByRecordId.class, CollectRecordGroup.queryCollectByPlanId.class})
    private String payType;

    /**
     * 付款日期
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {CollectRecordGroup.queryCollectByRecordId.class, CollectRecordGroup.queryCollectByPlanId.class})
    private Date payTime;

    /**
     * 认款人
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {CollectRecordGroup.queryCollectByRecordId.class, CollectRecordGroup.queryCollectByPlanId.class})
    private Long collectUserId;
    /**
     * 认款人
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {CollectRecordGroup.queryCollectByRecordId.class, CollectRecordGroup.queryCollectByPlanId.class})
    private String collectUser;

    /**
     * 户名
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {CollectRecordGroup.queryCollectByRecordId.class, CollectRecordGroup.queryCollectByPlanId.class})
    private String bankAccountName;
}
